/**
 * Created with IntelliJ IDEA.
 * User: Jordan
 * Date: 6/19/12
 * Time: 9:37 AM
 * To change this template use File | Settings | File Templates.
 */
public class Factorial {
    /*public static int Factorial(int a){
       int result=1;
       for(int i=a; i>0; i--){
           result=result*a;
           a=a-1;
       }
       return result;
    }


    }*/
    static int result=1;
    static int placeholder=1;
    public static int Factorial(int a){
        if(a==0){

            return result;
        }
        else {
            result=result*a;
            Factorial(a-1);
            return result;
        }
    }
        public static int Multiply(int resultt, int resulttwo){
            return Factorial(resultt)*Factorial(resulttwo);
        }
    public static void main(String[] args) {
        System.out.print(Multiply(5,3));
    }


        }
